<?php



namespace App\Http\Requests\Backend;

use App\Http\Requests\ApiV2\BaseRequest;
use Carbon\Carbon;
use Illuminate\Support\Facades\Auth;

class ServiceRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'title' => 'required|max:120',

        ];
    }

    public function messages()
    {
        return [
            'title.required' => __('请输入服务的标题'),

        ];
    }

    public function filldata()
    {
        return [

            'title' =>(string) $this->input('title', ''),


        ];
    }
}
